﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Data.Realm;

namespace Atlantyda
{
    class TreeNode
    {
        private OrientedField field;
        private TreeNode parent;
        private TreeNode left_node;
        private TreeNode right_node;
        private int rotate_count;
        private System.Drawing.Point coordinate;
        private bool good_way;

        public TreeNode LeftNode
        {
            set { this.left_node = value; }
            get { return this.left_node; }
        }

        public TreeNode RightNode
        {
            set { this.right_node = value; }
            get { return this.right_node; }
        }

        public TreeNode Parent
        {
            set { this.parent = value; }
            get { return this.parent; }
        }

        public int RotateCount
        {
            set { this.rotate_count = value; }
            get { return this.rotate_count; }
        }

        public System.Drawing.Point Coordinate
        {
            set { }
            get { return this.coordinate; }
        }

        public bool GoodWay
        {
            set { this.good_way = value; }
            get { return this.good_way; }
        }

        public OrientedField Field
        {
            set { }
            get { return this.field; }
        }

        public TreeNode()
        {
            this.coordinate = new System.Drawing.Point(0, 0);
            this.GoodWay = true;
        }

        public TreeNode(System.Drawing.Point coordinate)
        {
            this.coordinate = coordinate;
        }

        public TreeNode(System.Drawing.Point coordinate, OrientedField field)
        {
            this.coordinate = coordinate;
            this.field = field;
        }
    }
}
